package com.rybbaby.tss.front.tssPackagePostpone.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @description 课时包延期表
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-25 下午5:12:18
 */
@Entity
@Table(name = "tss_package_postpone")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TssPackagePostpone implements Serializable {
	
	private static final long serialVersionUID = 58924125633195L;
	
	/** 主键 **/
	private String id;
	/** 延期类型 **/
	private Integer type;
	/** 延期天数 **/
	private Integer days;
	/** 备注 **/
	private String remark;
	/** 创建时间 **/
	private java.sql.Timestamp createTime;
	/** 版本 **/
	private Integer version;
	/** 延期次数 **/
	private Integer delayTimes;
	/** 会员课时包 **/
	private String memberPackageId;
	/** 操作人 **/
	private String adminUserId;
	
	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "tss_package_postponeIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "tss_package_postponeIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}
	
	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}
	
	/**
	 * 方法: 取得延期类型
	 *
	 * @return java.lang.Integer 延期类型
	 */
	@Column(name = "type", nullable= true, length = 11)
	public Integer getType() {
		return this.type;
	}
	
	/**
	 * 方法: 设置延期类型
	 *
	 * @param type 延期类型
	 */
	public void setType(Integer type) {
		this.type = type;
	}
	

	
	/**
	 * 方法: 取得延期天数
	 *
	 * @return java.lang.Integer 延期天数
	 */
	@Column(name = "days", nullable= true, length = 11)
	public Integer getDays() {
		return this.days;
	}
	
	/**
	 * 方法: 设置延期天数
	 *
	 * @param days 延期天数
	 */
	public void setDays(Integer days) {
		this.days = days;
	}
	
	/**
	 * 方法: 取得备注
	 *
	 * @return java.lang.String 备注
	 */
	@Column(name = "remark", nullable= true, length = 500)
	public String getRemark() {
		return this.remark;
	}
	
	/**
	 * 方法: 设置备注
	 *
	 * @param remark 备注
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	/**
	 * 方法: 取得创建时间
	 *
	 * @return java.sql.Timestamp 创建时间
	 */
	@Column(name = "createTime", nullable= true, length = 19)
	public java.sql.Timestamp getCreateTime() {
		return this.createTime;
	}
	
	/**
	 * 方法: 设置创建时间
	 *
	 * @param createTime 创建时间
	 */
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}
	
	/**
	 * 方法: 取得版本
	 *
	 * @return java.lang.Integer 版本
	 */
    @Version
	@Column(name = "version", nullable= true, length = 11)
	public Integer getVersion() {
		return this.version;
	}
	
	/**
	 * 方法: 设置版本
	 *
	 * @param version 版本
	 */
	public void setVersion(Integer version) {
		this.version = version;
	}
	
	/**
	 * 方法: 取得延期次数
	 *
	 * @return java.lang.Integer 延期次数
	 */
	@Column(name = "DelayTimes", nullable= true, length = 11)
	public Integer getDelayTimes() {
		return this.delayTimes;
	}
	
	/**
	 * 方法: 设置延期次数
	 *
	 * @param delayTimes 延期次数
	 */
	public void setDelayTimes(Integer delayTimes) {
		this.delayTimes = delayTimes;
	}

	@Column(name = "memberPackageId", nullable= true, length = 32)
	public String getMemberPackageId() {
		return memberPackageId;
	}

	public void setMemberPackageId(String memberPackageId) {
		this.memberPackageId = memberPackageId;
	}
	@Column(name = "adminUserId", nullable= true, length = 32)
	public String getAdminUserId() {
		return adminUserId;
	}

	public void setAdminUserId(String adminUserId) {
		this.adminUserId = adminUserId;
	}
}